import axios_ from "@/utils/request";

// 登录API
export function login(data) {
    return axios_({
        url: '/api/login/',
        method: 'post',
        data: data
    })
}

// 登出API
export function logout() {
    return axios_({
        url: '/api/login/logout',
        method: 'post'
    })
}

// 获取用户信息API
export function getUserInfo() {
    return axios_({
        url: '/api/login/getInfo',
        method: 'get'
    })
}
